package com.cg.mapper;

import com.cg.entity.DocumentVector;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DocumentVectorMapper {
    int batchInsert(@Param("list") List<DocumentVector> list);
    
    @Select("SELECT * FROM document_vector WHERE resume_id = #{resumeId}")
    List<DocumentVector> selectByResumeId(@Param("resumeId") Long resumeId);

    List<DocumentVector> selectCorpusForSimilarity(@Param("excludeResumeId") Long excludeResumeId);
}


